package edu.stanford.travelhard;

import android.graphics.Bitmap;

public class LoadedMedia implements Comparable<LoadedMedia> {
	private Media  media;
	private Bitmap thumbnail;
	
	public LoadedMedia(LoadedMedia other) {
		this.media = other.media;
		this.thumbnail = other.thumbnail;
	}
	
	public LoadedMedia(Media media, Bitmap thumbnail) {
		this.media = media;
		this.thumbnail = thumbnail;
	}
	
	public Media getMedia() {
		return media;
	}
	
	public Bitmap getThumbnail() {
		return thumbnail;
	}

	/**
	 * Default ordering of the LoadedMedia: timeCaptured
	 */
	public int compareTo(LoadedMedia other) {
		return this.media.getTimeCaptured().compareTo(other.getMedia().getTimeCaptured());
	}
}
